const checkLogin = () => {
  const isLoggedIn = localStorage.getItem('token') !== null
  return isLoggedIn && true
}

const removeLogin = () => {
  localStorage.removeItem('token')
  localStorage.removeItem('username')
}
export { checkLogin, removeLogin }
